<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="base.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>对服务员的评论</title>
  </head>
  
  <body>
   <div class="container">
		<div class="row">
			<div class = "span2 well" style="margin-right:20px; margin-top:70px;">				
				<ul class="nav nav-list">					 					
				  <li class="active"><a href="${basePath }/dish.jspx">店长推荐（2）</a></li>
				  <li><a href="${basePath }/dish.jspx?s=onsale">今日特价（1）</a></li>
				   <li><a href="${basePath }/dish.jspx?s=pop">最受欢迎（4）</a></li>	
				  <li><a href="${basePath }/dish.jspx?s=esp">特色（2）</a></li>			   
				  <li><a href="${basePath }/dish.jspx?s=cold">凉菜（5）</a></li>
				  <li><a href="${basePath }/dish.jspx?s=hot">炒菜（12）</a></li>
				  <li><a href="${basePath }/dish.jspx?s=ganguo">干锅（3）</a></li>
				  <li><a href="${basePath }/dish.jspx?s=fish">鱼（5）</a></li>
				  <li><a href="${basePath }/dish.jspx?s=mainfood">主食（4）</a></li>	
				  <li><a href="${basePath }/dish.jspx?s=jiu">酒水（15）</a></li>
				  <li><a href="${basePath }/dish.jspx?s=sweet">甜品（6）</a></li>
				</ul>					
			</div>
			<div class="span9" style="margin-right:20px; margin-top:70px;">
				<c:forEach items="${userList }" var="user">
					<c:if test="${fn:length(user.commentList) != 0 }">
						<div class="row well" style="width:690px;">
							<div class="span2" style="margin-left:15px;margin-right:0px;max-height:300px;">
								<img src="img/${user.tou_xiang }" alt="" />
								<span>工号：${user.id }</span><br/><span>姓名：${user.username }</span>
							</div>
							<div class="span6" style="margin-left:0px;width:520px;">
								
									<c:forEach items="${user.commentList }" var="comment">
										
											<blockquote>
											  <p style="font-size:14px;">${comment.comment }</p>
											  <small>来自
											  <c:forEach items="${orderList }" var="order">
												<c:if test="${comment.order_id == order.id }">
											      ${order.table_num}
											  	</c:if>
											  </c:forEach>
											 	 号桌的评论&nbsp;&nbsp;${comment.create_time }</small>
											  <a href="${basePath }/delusercomment.jspx?commentid=${comment.id}"><i class="icon-trash"></i>删除</a>
											</blockquote>
									</c:forEach>
							<div>
								<a href="">查看更多评论</a>
							</div>
							</div>
						</div>
					</c:if>
				</c:forEach>
			</div>
		</div>
	</div>
   
   
   
  </body>
</html>
